@(one: List[models.domain.TimetableHomework],two: List[models.domain.TimetableHomework],three: List[models.domain.TimetableHomework],four: List[models.domain.TimetableHomework],five: List[models.domain.TimetableHomework],six: List[models.domain.TimetableHomework],seven: List[models.domain.TimetableHomework],eight: List[models.domain.TimetableHomework])

@teacherMain(title = "Stundatafla") {

    <div class="container conLower">

        <div class="row">
            <div class="span12">
                <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                    <thead>
                        <tr>
                            <th></th>
                            <th>Mánudagur</th>
                            <th>Þriðjudagur</th>
                            <th>Miðvikudagur</th>
                            <th>Fimmtudagur</th>
                            <th>Föstudagur</th>
                        </tr>
                    </thead>

                    <tbody>
                        <tr>
                            <td>8:30-9:15</td>
                            @for(record <- one){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                }
                            }
                        </tr>
                        <tr>
                            <td>9:20-10:05</td>
                            @for(record <- two){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                }
                            }
                        </tr>
                        <tr>
                            <td>10:20-11:05</td>
                            @for(record <- three){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                }

                            }
                        </tr>
                        <tr>
                            <td>11:10-11:55</td>
                            @for(record <- four){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                }
                            }
                        </tr>
                        <tr>
                            <td>12:30-13:05</td>
                            @for(record <- five){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                }
                            }
                        </tr>
                        <tr>
                            <td>13:10-13:55</td>
                            @for(record <- six){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                        }
                            }
                        </tr>
                        <tr>
                            <td>14:00-14:45</td>
                            @for(record <- seven){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                }
                            }
                        </tr>
                        <tr>
                            <td>14:55-15:40</td>
                            @for(record <- eight){
                                @if(record.getNamsgrein_afanganr!=""){
                                    <td>@record.getNamsgrein_afanganr - @record.getHopur_id<br>Stofa: @record.getStofa</td>
                                }else{
                                    <td></td>
                                }
                            }
                        </tr>


                    </tbody>
                </table>

            </div>
        </div>
    </div>
}